This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Obvious: The field "Ima" doesn't exist until you save the document the first time, so rtitem is in fact not set. One must use createRichtextItem to make a blank field to hold an attachment, as indicated in Help, if this is a new document. Best to check, anyway.
Not obvious: My experience is that LS will not assign a richtext item directly to a NotesRichtextItem object. Help Examples don't do this, and neither should you. Instead one must fetch a NotesItem, then check it's Type property to see if it is RICH_TEXT, then assign that NotesItem to a NotesRichtextItem. I've never understood this Rube Goldberg process, but every single time I have not used it, I've been burned.
- It strikes me that always better to exhaust Help, and Forum searching, before pasting a bunch of code and asking why it doesn't work. Both of these solutions are either directly in Help, or may be inferred from Examples in Help, at least in the Domino Database version of it.
- That make me wonder if you did try DDE Help and gave up. I could understand that ... I've been using Domino for twelve years and I avoid DDE Help like anthrax. Here's hoping this, too, is fixed in 8.5.1.
- Hope thishelps. Gosh but I ramble...
Feedback response number DGIE7VSHHD created by ~Holly Zekhipisonnivu on 09/11/2009